#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include "StdUDP.h"
int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        printf("invalid numbers!\n");
        return -1;
    }
    UdpC* c = InitUdpClient(argv[1], atoi(argv[2]));
    while(1)
    {
        char temp[100] = {0};
        scanf("%s", temp);
        while(getchar() != '\n');
        UdpClientSend(c, temp, 100);
    }
    ClearUdpClient(c);
    
    
    
    return 0;
}